#ifndef __DIRECTORY_H__
#define __DIRECTORY_H__
#include <my_header.h>
#include "pathStack.h"
#include "../dirSorting/head.h"

typedef struct path_s
{
    //客户在服务端的绝对路径
    char *absolutePath;

    //客户的初始路径
    char *initialPath;//         

    //客户视角的绝对路径
    char *pwd;

    //保存用户路径栈
    pathStack_t pathStack;
}path_t;


int initPath(path_t *path);
int cd(path_t *path,char pathname[12][32],int len);
/* int ls(path_t *path); */
int pwd(path_t *path,char* buf);
int freePath(path_t *path);

#endif
